package com.luo.partner.service;

import com.luo.common.base.BaseService;
import com.luo.common.utils.Query;
import com.luo.partner.dao.model.TabUsrs;
import com.luo.partner.dao.model.TabUsrsExample;
import com.luo.partner.dao.model.TabUsrsTemp;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
/**
* TabUsrsService接口
* Created by laohu on 2018/8/28.
*/
public interface TabUsrsService extends BaseService<TabUsrs, TabUsrsExample> {
TabUsrs get(Long id);

List<TabUsrs> list();

int save(TabUsrs role);

int update(TabUsrs role);

    int remove(Long id);

List<TabUsrs> list(Long userId);
List<TabUsrs> list(Map<String, Object> map);

    int batchRemove(Long[] ids);

    int count(Query query);

	List<TabUsrsTemp> findInviteUserList(Map<String, Object> map);

	int countInviteUserList(Map<String, Object> map);

	int findUserByAccount(String account);

	List<TabUsrs> findUnSettlementRechargeUserList();

	void settlementRecharge(TabUsrs tabUsrs) throws RuntimeException;

	void recharge(TabUsrs usrs,BigDecimal un_settlement_recharge) throws RuntimeException;

	List<Long> findUsrsIdList(Map<String, Object> params);

	int findUserByTel(String tel);
}